package com.gagakuai.demo.condit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-12 13:52
 */
@Configuration
public class MainConfigtion {

    @Conditional(MyCondition.class)
    @Bean
    public String name() {
        //@1
        return "路人甲Java";
    }

    @Bean
    public String address() {
        return "上海市";
    }
}